package cn.silver.module.oss.controller;

import cn.silver.framework.mybatis.controller.BaseController;
import cn.silver.module.oss.bean.ShareBean;
import cn.silver.module.oss.bean.ShareFileBean;
import cn.silver.module.oss.domain.OssShare;
import cn.silver.module.oss.domain.OssShareFile;
import cn.silver.module.oss.param.ShareFileParam;
import cn.silver.module.oss.param.ShareParam;
import cn.silver.module.oss.service.IOssShareFileService;
import cn.silver.module.oss.service.IOssShareService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhouxiaobo
 */
@Validated
@RestController
@RequiredArgsConstructor
@RequestMapping("/oss/share/file")
@Tag(name = "对象存储管理-文件分享信息管理-分享内容管理")
public class OssShareFileController extends BaseController<IOssShareFileService, OssShareFile, ShareFileParam, ShareFileBean> {

    @Override
    @Resource
    public void setBaseService(IOssShareFileService baseService) {
        this.baseService = baseService;
        this.setCode("oss_share");
        this.setPermission("oss:share");
        this.setTitle("对象存储管理-文件分享信息管理-分享内容管理");
    }
}
